package com.starinside.wp.domain.cookbook;

import com.starinside.wp.domain.NativeWithResultClass;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 食谱展示
 */
@Entity
@Table(name = "tb_recipe_show")
@Data
@EqualsAndHashCode(callSuper = true)
@NativeWithResultClass
public class RecipeShow extends RecipeBase implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 日期
   */
  @Column(name = "recipe_date")
  private Date recipeDate;

  /**
   * 幼儿园ID
   */
  @Column(name = "area_id")
  private String areaId;

  /**
   * 内容 json格式存储
   */
  @Column(name = "content")
  private String content;

  /**
   * 是否发布标识 0-未发布，1-已发布
   */
  @Column(name = "publish_flag")
  private Integer publishFlag = 1;

  /**
   * 创建时间
   */
  @Column(name = "create_time", nullable = false)
  private Timestamp createTime;

  
}